package sort;

public class jinzhi {
    public static void main(String[] args) {
//        int n;
//        n = 515415;
//        System.out.println(Integer.toBinaryString(n));
//        n = 0b10111010_10101111_01000101_11010100;
//        System.out.println(Integer.toBinaryString(n));
//        n = 0xbaaf45d4;
//        System.out.println(Integer.toBinaryString(n));
//        int max = Integer.MAX_VALUE;
//        int mix = Integer.MIN_VALUE;
//        System.out.println("10进制最大值"+max);
//        System.out.println("10进制最小值"+mix);
//        System.out.println("2进制最大值"+Integer.toBinaryString(max));
//        System.out.println("2进制最小值"+Integer.toBinaryString(mix));
//        long lmax = Long.MAX_VALUE;
//        long lmix = Long.MIN_VALUE;
//        System.out.println("16进制最大值"+lmax);
//        System.out.println("16进制最小值"+lmix);
//        System.out.println("2进制最大值"+Long.toBinaryString(lmax));
//        System.out.println("2进制最小值"+Long.toBinaryString(lmix));
//        int a = 0b11111111;
//        System.out.println(a);
        int n = 0xa2f7c9d1;
        int m = 0xff;
        int k = n&m;
        System.out.println(Integer.toBinaryString(n));
        System.out.println(Integer.toBinaryString(m));
        System.out.println(Integer.toBinaryString(k));
        System.out.println(n % 8);
        System.out.println(n % 0x7);
        System.out.println(n % 16);
        System.out.println(n % 0xf);

    }
}
